package com.itbbj.principle.d4_DIP.demo2;

import com.itbbj.principle.d4_DIP.demo2.cpu.Cpu;
import com.itbbj.principle.d4_DIP.demo2.memory.AmdMemory;
import com.itbbj.principle.d4_DIP.demo2.memory.Memory;
import com.itbbj.principle.d4_DIP.demo2.memory.IntelMemory;

import com.itbbj.principle.d4_DIP.demo2.cpu.AmdCpu;
import com.itbbj.principle.d4_DIP.demo2.cpu.IntelCpu;
import com.itbbj.principle.d4_DIP.demo2.cpu.Cpu;


/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack_yang
 * @Date: 2024/5/6
 * @Description: addition and subtraction
 */
public class Test {
    public static void main(String[] args) {
        Cpu cpu = new AmdCpu();
        Memory memory = new AmdMemory();
        Computer computer = new Computer(cpu, memory);
        computer.startRun();
    }
}
